package com.xoa.controller.equipment;


import com.xoa.service.equipment.LimsEquipEventPlanParaService;
import com.xoa.util.LimsJson;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @作者 杨岩林
 * @创建日期 11:31 2019/12/23
 * @类介绍  新增定期事件 参数
 */
@Controller
@RequestMapping("LimsEquipEventPlanPara")
public class LimsEquipEventPlanParaController {
    @Autowired
    private LimsEquipEventPlanParaService limsEquipEventPlanParaService;

    //添加或者修改接口
    @RequestMapping("addOrUpdate")
    @ResponseBody
    public LimsJson addOrUpdate(String json){
        return limsEquipEventPlanParaService.addOrUpdate(json);
    }

    //删除接口 可单个 可多个
    @RequestMapping("deleteByIds")
    @ResponseBody
    public LimsJson deleteByIds(String ids){
        return limsEquipEventPlanParaService.deleteByIds(ids);
    }

    //查看 事件下参数
    @RequestMapping("showByEventId")
    @ResponseBody
    public LimsJson showByEventId(Integer eventId,Integer page,Integer limit){
        return limsEquipEventPlanParaService.showByEventId(eventId,page,limit);
    }
}
